package org.metasketch.ham.diagrams.links;

import org.metasketch.editor.toolbox.ISemanticFactory;
import org.metasketch.ham.model.HumanActivityRelationLink;
import org.metasketch.ham.model.HumanActivityRelationType;
import org.metasketch.model.CommonIdentified;

public class HumanActivityRelationTypeFactory implements ISemanticFactory {

	HumanActivityRelationType type;

	public HumanActivityRelationTypeFactory(HumanActivityRelationType type) {
		this.type = type;
	}

	@Override
	public CommonIdentified getNewInstance() {
		HumanActivityRelationLink unit = new HumanActivityRelationLink();
		unit.setType(type);
		return unit;
	}

	@Override
	public Class getSemanticType() {
		return HumanActivityRelationLink.class;
	}

}
